﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SportsStore.Builder
{
  public static class BuildMeA
  {
    public static CartItemBuilder CartItem(int productId, string shoppingCartId, int quantity)
    {
      return (CartItemBuilder) new CartItemBuilder(productId, shoppingCartId, quantity).With(p =>
        {
          p.Quantity = quantity;
          p.CartId = shoppingCartId;
        });
    }

    public static ProductBuilder Product(string name, string description, decimal price)
    {
      return (ProductBuilder)new ProductBuilder().With(p =>
      {
        p.Name = name;
        p.Description = description;
        p.Price = price;
      });
    }
  }
}
